#ifndef __ETHERNETIF_H__
#define __ETHERNETIF_H__

#include "stdint.h"
#include "netif.h"

#define CHECKSUM_BY_HARDWARE 
uint8_t ethernetif_init(struct netif *netif);
uint8_t ethernetif_output(struct netif *netif, struct pbuf *p);
uint8_t ethernetif_input(struct netif *netif);

#define ERR_OK          0    /* No error, everything OK. */
#define ERR_MEM        -1    /* Out of memory error.     */
#define ERR_BUF        -2    /* Buffer error.            */
#define ERR_TIMEOUT    -3    /* Timeout.                 */
#define ERR_RTE        -4    /* Routing problem.         */
#define ERR_INPROGRESS -5    /* Operation in progress    */
#define ERR_VAL        -6    /* Illegal value.           */
#define ERR_WOULDBLOCK -7    /* Operation would block.   */
#define ERR_USE        -8    /* Address in use.          */
#define ERR_ISCONN     -9    /* Already connected.       */


#endif
